package cn.group01.git.controller;

import cn.group01.git.annotations.LogOperation;
import cn.group01.git.common.Operation;
import cn.group01.git.common.ResponseResult;
import cn.group01.git.dto.LogPageDTO;
import cn.group01.git.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("log")
public class LogController {
    @Autowired
    private LogService logService;

    @GetMapping("list")
    @LogOperation(description = Operation.SELECT,model = "日志模块")
    public ResponseResult list(LogPageDTO logPageDTO){

        return logService.list(logPageDTO);
    }
}
